﻿@model TestUp.Models.UserModels.UserNavigationModel

@{
    ViewBag.Title = "_UserNavigationLayout";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@if(Model.Permission.CanSeeAdminPanel)
{
    <div id="adminPanelBtn">
        @Html.ActionLink("Go to admin tools", "Index", "Admin")
    </div>
}

<div id="leftColumn">
    <div id="currentTime">@DateTime.Now</div>
    
    @if(Model.Permission.CanPassTests)
    {
        <div id="pendingTestsTests">
            @Html.ActionLink("Pending tests", "PendingTests", "User")
        </div>
        <div id="completedTests">
            @Html.ActionLink("Show my results", "PassingResults", "User")
        </div>
    }
</div>

<div id="rightColumn">
    @RenderBody()
</div>